package com.lvmama.finance.demo.elasticsearch.repository.jpa;

import java.util.Date;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.lvmama.finance.demo.elasticsearch.domain.jpa.ProductEntity;

@Repository
public interface ProductRepository extends JpaRepository<ProductEntity, Long>{

	Page<ProductEntity> findByModifiedTimeGreaterThanEqual(Date lastSyncTime, Pageable pageable);

}
